import {
  SCHEDULE,
  ADDSCHEDULE,
  UPDATESCHEDULE,
  DELSCHEDULE,
  ONESCHEDULE
} from "./api";
import { METHOD, request } from "@/utils/request";

//获取设备标签排期
export function list(params) {
  return request(SCHEDULE, METHOD.GET, params);
}
//添加排期
export function add(params) {
  return request(ADDSCHEDULE, METHOD.POST, params);
}
//编辑排期
export function update(params) {
  return request(UPDATESCHEDULE, METHOD.POST, params);
}
//删除排期
export function del(params) {
  return request(DELSCHEDULE, METHOD.POST, params);
}
//删除排期
export function findById(params) {
  return request(ONESCHEDULE, METHOD.GET, params);
}
